<%@page import="com.zhangyj.action.BoastContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String localeName = request.getLocale().toString();
	String contextPath = application.getContextPath();
	boolean iscdn = false;
	String dojosrc= BoastContext.getConfigValue("jscdn");// + "/js/dojo";
	if (dojosrc != null && dojosrc.trim().length() > 0) {
		iscdn = true;
	} else {
		dojosrc= contextPath + "/js/dojo";
		if (BoastContext.isDebug()) {
			dojosrc=contextPath + "/js/dojo-release-1.7.1-src";
		}
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <title>Boast Portal</title>
	<style type="text/css">
	@import "<%=dojosrc %>/dojo/resources/dojo.css";
	@import "<%=dojosrc %>/dijit/themes/claro/claro.css";
	</style>
	<style type="text/css">
	html,body{
		height:100%;
		width:100%;
	}
	 a:hover.boast_nav{
		color:red;
		font-weight: bold;
	}
	 a.boast_nav{
		font-size:11pt;
		color:#fff;
		font-weight: bold;
		text-decoration: none;
	}
-->
</style>
	<script type="text/javascript">
	var contextpath = "<%=contextPath %>";
	 var djConfig = {
		    isDebug: false,
		    debugContainerId: "",
		    bindEncoding: "",
		    allowQueryConfig: false,
		    baseScriptUri: "",
		    parseWidgets: true,
		    searchIds: [],
		    baseRelativePath: "",
		    libraryScriptUri: "",
		    iePreventClobber: false,
		    ieClobberMinimal: true,
		    preventBackButtonFix: true,
		    parseOnLoad:　true
		};

	</script>
	<script type="text/javascript" src="<%=dojosrc %>/dojo/dojo.js<%=BoastContext.isDebug() && iscdn ?".uncompressed.js":"" %>" djConfig="parseOnLoad:　true"></script>
	<script type="text/javascript">
	dojo.registerModulePath("ws","<%=contextPath %>/workspace");
	dojo.require("ws.main");
	
	dojo.ready(function() {
		var testId = location.search.match(/(\?test|=)(\w+)/);
		if (testId) {
			dojo.require("obe.test.tests."+testId[2]);
		} else {
			ws.main.startup();
		}
	})
	</script>
</head>
<body class="claro">
	<div id="bafLoading">
		<p>Loading</p>
	</div>
	 <div id="port_title" style="display:none">
	  <%@include file="/WEB-INF/jsps/baner.jsp"%>
	</div>
	
	 <div id="port_content" style="display:none">
	  <iframe id="iframe_content" src=""  frameBorder=0  style="border-width:0;position:absolute;left:0px;top:0px;margin:0;padding:0;width:100%;height:100%"></iframe>
	</div>
</body>
</html>
